package org.example.model;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;



@Getter
@Setter
@ToString
public class Message {
    private Integer messageId;
    private Integer userId;  //关联用户表
    private Integer channelId;  //关联频道表
    private String content;
    private java.util.Date sendTime;  //消息发送时间

    //服务端接收客户端发送的消息，然后转发给所有客户端，利用昵称显示
    private String nickName; //代表昵称

}
